﻿@namespace Masa.Tsc.Web.Admin.Rcl.Components
@inherits TscEChartBase

<MCard Width="Width" Height="Height" Class="d-flex flex-column rounded-lg">
    <MCardTitle Class="d-flex justify-space-between" >
        <MLabel Class="emphasis2--text h6">@Title</MLabel>
        <SIcon>mdi-information-outline</SIcon>
    </MCardTitle>
    <MCardText Class="flex-grow-1">
        @if (_isLoading)
        {
            @("Loading ...")
        }
        else
        {
            <MECharts Option="_options.Option" Width="@("100%")" Height="@("100%")"></MECharts>
        }
    </MCardText>
</MCard>